# 王磊的作业
n = 9
while n > 0:
    x = 0
    while x < n:
        print(x+1,'*',n,'=',(x+1)*n,end='\t')
        x += 1
    print()
    n -= 1
